package cn.com.egova.dao;

import cn.com.egova.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yuanchao on 2020/6/27.
 */
@Repository
public interface AccountDao {

    @Select("select * from account")
    List<Account> findAll();


    @Insert("insert into account(name, money) values(#{name}, #{money})")
    void saveAccount(Account account);
}
